import 'package:flutter_base/pages/mine/setting_profile/setting_profile_view.dart';
import 'package:flutter_base/pages/mine/setting/setting_view.dart';
import 'package:flutter_base/pages/mine/account_settings/account_settings_view.dart';
import 'package:flutter_base/pages/mine/test_history/test_history_view.dart';
import 'package:flutter_base/pages/mine/wallet/wallet_coin_details/wallet_coin_details_view.dart';
import 'package:flutter_base/pages/mine/wallet/wallet_view.dart';
import 'package:flutter_base/pages/chat/digital_human_chat_view.dart';
import 'package:flutter_base/pages/test_detail/test_detail_view.dart';
import 'package:flutter_base/pages/test_questions/test_questions_view.dart';
import 'package:flutter_base/pages/test_result/test_result_view.dart';

import 'package:flutter_base/pages/splash/splash_view.dart';
import 'package:flutter_base/pages/login/login_view.dart';
import 'package:flutter_base/pages/login/email_verification_view.dart';
import 'package:flutter_base/pages/login/register_success_view.dart';
import 'package:flutter_base/pages/login/forget_password_view.dart';
import 'package:flutter_base/pages/login/reset_password_view.dart';
import 'package:flutter_base/pages/main/main_view.dart';
import 'package:flutter_base/pages/search/search_view.dart';
import 'package:flutter_base/pages/test_result_normal/test_result_normal_view.dart';

import 'package:get/get.dart';

class AppRoutes {
  // 闪屏页
  static const splash = '/splash';

  // 登录注册
  static const login = '/login';
  static const emailVerification = '/emailVerification';
  static const registerSuccess = '/registerSuccess';
  static const forgetPassword = '/forgetPassword';
  static const resetPassword = '/resetPassword';

  // 主页
  static const main = '/main';

  // 测试页面
  static const testPage = '/testPage';

  // 测试详情页
  static const testDetail = '/testDetail';

  // 测试问题页面
  static const testQuestions = '/test/questions';
  static const testResult = '/test/result';
  static const testResultNormal = '/test/resultNormal';

  // 测试历史页面
  static const testHistory = '/test_history';

  // 新增路由
  static const testTabPage = '/testTabPage';

  // 搜索相关
  static const search = '/search';
  static const searchResult = '/searchResult';

  // 设置相关
  static const settingProfile = '/settingProfile';
  static const setting = '/setting';
  static const accountSettings = '/accountSettings';

  // 钱包相关
  static const wallet = '/wallet';
  static const walletCoinDetails = '/WalletCoinDetails';

  // 聊天相关
  static const digitalHumanChat = '/digitalHumanChat';

  static var pages = [
    // 闪屏页
    GetPage(name: splash, page: () => SplashPage()),

    // 登录注册
    GetPage(name: login, page: () => LoginPage()),
    GetPage(name: emailVerification, page: () => EmailVerificationPage()),
    GetPage(name: registerSuccess, page: () => RegisterSuccessPage()),
    GetPage(name: forgetPassword, page: () => ForgetPasswordPage()),
    GetPage(name: resetPassword, page: () => ResetPasswordPage()),

    // 主页
    GetPage(name: main, page: () => MainPage()),

    // 测试详情页
    GetPage(name: testDetail, page: () => TestDetailPage()),

    // 测试问题页面
    GetPage(name: testQuestions, page: () => TestQuestionsPage()),

    // 测试结果页面
    GetPage(name: testResult, page: () => TestResultPage()),

    // 测试结果页面
    GetPage(name: testResultNormal, page: () => TestResultNormalPage()),

    // TestResultNormalPage

    // 测试历史页面
    GetPage(name: testHistory, page: () => TestHistoryPage()),

    // 搜索相关
    GetPage(name: search, page: () => SearchPage()),
    // GetPage(
    //   name: searchResult,
    //   page: () => SearchResultPage(keyword: Get.arguments['keyword'])
    // ),

    // 设置相关
    GetPage(name: settingProfile, page: () => SettingProfilePage()),
    GetPage(name: setting, page: () => SettingPage()),
    GetPage(name: accountSettings, page: () => AccountSettingsPage()),

    // 钱包相关
    GetPage(name: wallet, page: () => WalletPage()),
    // 钱包相关
    GetPage(name: walletCoinDetails, page: () => WalletCoinDetailsPage()),

    // 聊天相关
    GetPage(name: digitalHumanChat, page: () => DigitalHumanChatPage()),
  ];
}
